package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.ResponseResult;
import com.example.domain.entity.Order;
import com.example.domain.entity.OrderItem;
import com.example.exception.FloraException;
import org.springframework.transaction.annotation.Transactional;

public interface OrderService extends IService<Order> {


    IPage<Order> getOrder(Long OrderId, int pageNum, int pageSize);

    Order addOrder(Order order) throws FloraException;

    @Transactional(rollbackFor = Exception.class)
    void deleteOrder(Long orderId) throws FloraException;
}
